import request from "../utils/axios"
import $axios from 'axios';
export const getLogin = (params) => {
    return request({
        url: '/user/login',
        method: 'post',
        data: params
    })
}
export const getInfo = (params) => {
    return request({
        url: '/user/info',
        method: 'get',
        params: params
    })
}
export const upLoad = (data) => {
    return $axios({
        url: 'http://192.168.0.117:3030/user/upload',
        method: 'post',
        data
    })
}
export const register = (data) => {
    return request({
        url: '/user/register',
        method: 'post',
        data
    })
}
export const verifyLoginName = (loginName) => {
    return request({
        url: '/user/verifyLoginName',
        method: 'get',
        params: {
            loginName: loginName
        }
    })
}